home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Begleitmaterial
/
50Tools
/
Grafik
/
PerfectPaint
/
rexx
/
bridge
/
AppAnim.rx
< prev
next >
Wrap
Text File
|
2002-12-21
|
995b
|
73 lines
/* arexx Script
Make anim with pictures
*/
options results
parse ARG Port count b
ADDRESS value Port
file="Ram:MultiFile"
IF OPEN("g",file,"read") then DO
file=READLN("g")
file2=""
DO i=1 to LENGTH(file)
a=SUBSTR(file,i,1)
IF a=" " then DO
a="*"
END
file2=file2||a
END
file=file2
pp_Load file
pp_GetWidth
IF result=0 then DO
pp_Warn "Can't*load*first*picture."
EXIT
END
pp_AnimGui 1
IF result<2 then DO
EXIT
END
pp_MakeAnim count Preview
pp_CountFrames
count=result
Do i=1 to count-1
pp_FastNextFrame
file=READLN("g")
file2=""
DO ii=1 to LENGTH(file)
a=SUBSTR(file,ii,1)
IF a=" " then DO
a="*"
END
file2=file2||a
END
file=file2
pp_Bload file
pp_GetWidthB
w=result
IF w=0 then DO
EXIT
END
pp_GetHeightB
h=result
x=w/2
y=h/2
pp_Plot x y
END
CALL close(file)
pp_GotoFrame 1
END
pp_FreeBrush
exit